package com.ljd.gulimall.ware.dao;

import com.ljd.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 * 
 * @author ljd
 * @email 2381773911@qq.com
 * @date 2023-02-06 17:37:47
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    void updateSku(@Param("id") Long id,@Param("skuNum") Integer skuNum);

    List<Map<String, Object>> getSkuHasStock(@Param("ids") List<Long> skuIds);
}
